datatable linq where clause c#

85

datatable linq where clause c# -

string[] data = dt.AsEnumerable().Where(s => s.Field("col1") == "us").Select(s => s.Field("col2")).ToArray();

Comments

Submit
0 Comments